home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 May / PCpro_2005_05.ISO / files / mut / 9430830 / client.swf / scripts / %3Cdefault package%3E / ultimateScroller.as < prev   
Encoding:
Text File  |  2004-12-15  |  37.6 KB  |  1,323 lines

  1. function ultimateScrollerClass()
  2. {
  3.    this.initialize();
  4. }
  5. ultimateScrollerClass.prototype = new MovieClip();
  6. ultimateScrollerClass.prototype.scrollUp = function()
  7. {
  8.    if(this.enabled == false)
  9.    {
  10.       return undefined;
  11.    }
  12.    if(this.c_horizontal)
  13.    {
  14.       if(this.targetClip._x < this.scrollBottom)
  15.       {
  16.          var _loc4_ = this.targetClip._x + this.scrollAmount >= this.scrollBottom ? this.scrollBottom : this.targetClip._x + this.scrollAmount;
  17.          var _loc2_ = (_loc4_ - this.scrollBottom) * 100 / (this.scrollBottom - this.scrollTop) * -1;
  18.          this.drag._y = Math.floor(this.dragTop - (this.dragTop - this.dragBottom) / 100 * _loc2_);
  19.          this.syncTargetPos();
  20.          false;
  21.          false;
  22.       }
  23.    }
  24.    else if(this.targetClip._y < this.scrollTop)
  25.    {
  26.       var _loc3_ = this.targetClip._y + this.scrollAmount >= this.scrollTop ? this.scrollTop : this.targetClip._y + this.scrollAmount;
  27.       _loc2_ = (_loc3_ - this.scrollTop) * 100 / (this.scrollTop - this.scrollBottom) * -1;
  28.       this.drag._y = Math.floor(this.dragTop - (this.dragTop - this.dragBottom) / 100 * _loc2_);
  29.       this.syncTargetPos();
  30.       false;
  31.       false;
  32.    }
  33. };
  34. ultimateScrollerClass.prototype.scrollDown = function()
  35. {
  36.    if(this.enabled == false)
  37.    {
  38.       return undefined;
  39.    }
  40.    if(this.c_horizontal == true)
  41.    {
  42.       if(this.targetClip._x > this.scrollTop)
  43.       {
  44.          var _loc4_ = this.targetClip._x - this.scrollAmount <= this.scrollTop ? this.scrollTop : this.targetClip._x - this.scrollAmount;
  45.          var _loc2_ = (_loc4_ - this.scrollBottom) * 100 / (this.scrollBottom - this.scrollTop) * -1;
  46.          this.drag._y = Math.ceil(this.dragTop - (this.dragTop - this.dragBottom) / 100 * _loc2_);
  47.          this.syncTargetPos();
  48.          false;
  49.          false;
  50.       }
  51.    }
  52.    else if(this.targetClip._y > this.scrollBottom)
  53.    {
  54.       var _loc3_ = this.targetClip._y - this.scrollAmount <= this.scrollBottom ? this.scrollBottom : this.targetClip._y - this.scrollAmount;
  55.       _loc2_ = (_loc3_ - this.scrollTop) * 100 / (this.scrollTop - this.scrollBottom) * -1;
  56.       this.drag._y = Math.ceil(this.dragTop - (this.dragTop - this.dragBottom) / 100 * _loc2_);
  57.       this.syncTargetPos();
  58.       false;
  59.       false;
  60.    }
  61. };
  62. ultimateScrollerClass.prototype.pageUp = function()
  63. {
  64.    var _loc2_ = this.c_scrollAmount;
  65.    this.c_scrollAmount = int(this.h);
  66.    this.scrollUp();
  67.    this.c_scrollAmount = _loc2_;
  68.    false;
  69. };
  70. ultimateScrollerClass.prototype.pageDown = function()
  71. {
  72.    var _loc2_ = this.c_scrollAmount;
  73.    this.c_scrollAmount = int(this.h);
  74.    this.scrollDown();
  75.    this.c_scrollAmount = _loc2_;
  76.    false;
  77. };
  78. ultimateScrollerClass.prototype.scrollToTop = function()
  79. {
  80.    if(this.enabled == false)
  81.    {
  82.       return undefined;
  83.    }
  84.    this.drag._y = this.dragTop;
  85.    this.syncTargetPos();
  86. };
  87. ultimateScrollerClass.prototype.scrollToBottom = function()
  88. {
  89.    if(this.enabled == false)
  90.    {
  91.       return undefined;
  92.    }
  93.    this.drag._y = this.dragBottom;
  94.    this.syncTargetPos();
  95. };
  96. ultimateScrollerClass.prototype.getScrollPosition = function()
  97. {
  98.    return this.drag._y;
  99. };
  100. ultimateScrollerClass.prototype.setScrollPosition = function(scrollPos)
  101. {
  102.    this.drag._y = scrollPos;
  103. };
  104. ultimateScrollerClass.prototype.setDragHeight = function(usrHeight)
  105. {
  106.    this.c_dragHeight = usrHeight;
  107.    if(usrHeight > this.track_mc._height - 48)
  108.    {
  109.       usrHeight = this.track_mc._height - 48;
  110.    }
  111.    else if(usrHeight < 2)
  112.    {
  113.       usrHeight = 2;
  114.    }
  115.    this.dragHeight = usrHeight;
  116.    var btnDrag = this.attachMovie("ultimateScroller_drag","drag",5,{_x:0,_y:16,w:this.c_scrollWidth,h:this.dragHeight});
  117.    btnDrag.useHandCursor = false;
  118.    this.dragTop = 16;
  119.    this.dragBottom = this.h - 16 - this.dragHeight;
  120.    if(this.scrollTo != null)
  121.    {
  122.       btnDrag._y = this.scrollTo <= this.dragBottom ? this.scrollTo : this.dragBottom;
  123.       var _loc4_ = this.c_easing;
  124.       this.c_easing = "none";
  125.       this.syncTargetPos();
  126.       this.c_easing = _loc4_;
  127.       false;
  128.    }
  129.    btnDrag.onMouseDown = function()
  130.    {
  131.       if(this._parent.enabled == false)
  132.       {
  133.          return undefined;
  134.       }
  135.       if(btnDrag.hitTest(_root._xmouse,_root._ymouse))
  136.       {
  137.          btnDrag.startDrag(false,0,this._parent.dragTop,0,this._parent.dragBottom);
  138.          this._parent.dragging = true;
  139.          updateAfterEvent();
  140.       }
  141.    };
  142.    btnDrag.onMouseUp = function()
  143.    {
  144.       btnDrag.stopDrag();
  145.       this._parent.dragging = false;
  146.       updateAfterEvent();
  147.    };
  148.    if(!this.c_dragVisible)
  149.    {
  150.       this.drag._visible = false;
  151.    }
  152. };
  153. ultimateScrollerClass.prototype.initialize = function()
  154. {
  155.    this.setDefaults();
  156.    this.enabled = false;
  157.    if(this.c_horizontal == true)
  158.    {
  159.       this._rotation = -90;
  160.       this._xscale = -100;
  161.       this._y = int(this._y + 16);
  162.       if(this.size == null)
  163.       {
  164.          this.setSize(this._width);
  165.       }
  166.       else
  167.       {
  168.          this.setSize(this.size);
  169.       }
  170.    }
  171.    else
  172.    {
  173.       this._rotation = 0;
  174.       this._xscale = 100;
  175.       if(this.size == null)
  176.       {
  177.          this.setSize(this._height);
  178.       }
  179.       else
  180.       {
  181.          this.setSize(this.size);
  182.       }
  183.    }
  184.    if(this._targetInstanceName.length > 0)
  185.    {
  186.       var _loc2_ = this._parent[this._targetInstanceName];
  187.       this.initX = _loc2_._x;
  188.       this.initY = _loc2_._y;
  189.       this.initW = _loc2_._width;
  190.       this.initH = _loc2_._height;
  191.       this.setTarget(_loc2_);
  192.       false;
  193.    }
  194.    else
  195.    {
  196.       this.setEnabled(false);
  197.    }
  198. };
  199. ultimateScrollerClass.prototype.setDefaults = function()
  200. {
  201.    if(this.c_horizontal == null)
  202.    {
  203.       if(this.horizontal == null)
  204.       {
  205.          this.c_horizontal = false;
  206.       }
  207.       else
  208.       {
  209.          this.c_horizontal = Boolean(this.horizontal);
  210.          delete this.horizontal;
  211.       }
  212.    }
  213.    if(this.c_buffer == null)
  214.    {
  215.       if(this.buffer == null)
  216.       {
  217.          this.c_buffer = 10;
  218.       }
  219.       else
  220.       {
  221.          this.c_buffer = int(this.buffer);
  222.          delete this.buffer;
  223.       }
  224.    }
  225.    if(this.c_scrollAmount == null)
  226.    {
  227.       if(this.scrollAmount == null)
  228.       {
  229.          this.c_scrollAmount = 40;
  230.       }
  231.       else
  232.       {
  233.          this.c_scrollAmount = int(this.scrollAmount);
  234.          delete this.scrollAmount;
  235.       }
  236.    }
  237.    if(this.c_easing == null)
  238.    {
  239.       if(this.easing == null)
  240.       {
  241.          this.c_easing = "none";
  242.       }
  243.       else
  244.       {
  245.          this.c_easing = this.easing;
  246.          delete this.easing;
  247.       }
  248.    }
  249.    if(this.c_useMask == null)
  250.    {
  251.       if(this.useMask == null)
  252.       {
  253.          this.c_useMask = false;
  254.       }
  255.       else
  256.       {
  257.          this.c_useMask = Boolean(this.useMask);
  258.          delete this.useMask;
  259.       }
  260.    }
  261.    if(this.c_dragVisible == null)
  262.    {
  263.       if(this.dragVisible == null)
  264.       {
  265.          this.c_dragVisible = true;
  266.       }
  267.       else
  268.       {
  269.          this.c_dragVisible = Boolean(this.dragVisible);
  270.          delete this.dragVisible;
  271.       }
  272.    }
  273.    if(this.c_dragAuto == null)
  274.    {
  275.       if(this.dragHeightAuto == null)
  276.       {
  277.          this.c_dragAuto = true;
  278.       }
  279.       else
  280.       {
  281.          this.c_dragAuto = Boolean(this.dragHeightAuto);
  282.          delete this.dragHeightAuto;
  283.       }
  284.    }
  285.    if(this.c_scrollTrackVisible == null)
  286.    {
  287.       if(this.scrollTrackVisible == null)
  288.       {
  289.          this.c_scrollTrackVisible = true;
  290.       }
  291.       else
  292.       {
  293.          this.c_scrollTrackVisible = Boolean(this.scrollTrackVisible);
  294.          delete this.scrollTrackVisible;
  295.       }
  296.    }
  297.    if(this.c_buttonsVisible == null)
  298.    {
  299.       if(this.buttonsVisible == null)
  300.       {
  301.          this.c_buttonsVisible = true;
  302.       }
  303.       else
  304.       {
  305.          this.c_buttonsVisible = Boolean(this.buttonsVisible);
  306.          delete this.buttonsVisible;
  307.       }
  308.    }
  309.    if(this.c_arrowsVisible == null)
  310.    {
  311.       if(this.arrowsVisible == null)
  312.       {
  313.          this.c_arrowsVisible = true;
  314.       }
  315.       else
  316.       {
  317.          this.c_arrowsVisible = Boolean(this.arrowsVisible);
  318.          delete this.arrowsVisible;
  319.       }
  320.    }
  321.    if(this.c_arrowDefaultColor == null)
  322.    {
  323.       if(this.arrowDefaultColor == null)
  324.       {
  325.          this.c_arrowDefaultColor = false;
  326.       }
  327.       else
  328.       {
  329.          this.c_arrowDefaultColor = Boolean(this.arrowDefaultColor);
  330.          delete this.arrowDefaultColor;
  331.       }
  332.    }
  333.    if(this.c_scrollWidth == null)
  334.    {
  335.       if(this.scrollWidth == null)
  336.       {
  337.          this.c_scrollWidth = 16;
  338.       }
  339.       else
  340.       {
  341.          this.c_scrollWidth = int(this.scrollWidth);
  342.          delete this.scrollWidth;
  343.       }
  344.    }
  345.    if(this.c_useDisabledColor == null)
  346.    {
  347.       if(this.useDisabledColor == null)
  348.       {
  349.          this.c_useDisabledColor = true;
  350.       }
  351.       else
  352.       {
  353.          this.c_useDisabledColor = Boolean(this.useDisabledColor);
  354.          delete this.useDisabledColor;
  355.       }
  356.    }
  357.    if(this.c_scrollSide == null)
  358.    {
  359.       if(this.scrollSide == null)
  360.       {
  361.          this.c_scrollSide = "right";
  362.       }
  363.       else
  364.       {
  365.          this.c_scrollSide = String(this.scrollSide);
  366.          delete this.scrollSide;
  367.       }
  368.    }
  369.    if(this.c_face == null)
  370.    {
  371.       if(this.face == null)
  372.       {
  373.          this.c_face = 14078926;
  374.       }
  375.       else
  376.       {
  377.          this.c_face = this.face;
  378.          delete this.face;
  379.       }
  380.    }
  381.    if(this.c_shadow == null)
  382.    {
  383.       if(this.shadow == null)
  384.       {
  385.          this.c_shadow = 8684164;
  386.       }
  387.       else
  388.       {
  389.          this.c_shadow = this.shadow;
  390.          delete this.shadow;
  391.       }
  392.    }
  393.    if(this.c_darkshadow == null)
  394.    {
  395.       if(this.darkshadow == null)
  396.       {
  397.          this.c_darkshadow = 4342082;
  398.       }
  399.       else
  400.       {
  401.          this.c_darkshadow = this.darkshadow;
  402.          delete this.darkshadow;
  403.       }
  404.    }
  405.    if(this.c_highlight == null)
  406.    {
  407.       if(this.highlight == null)
  408.       {
  409.          this.c_highlight = 16777215;
  410.       }
  411.       else
  412.       {
  413.          this.c_highlight = this.highlight;
  414.          delete this.highlight;
  415.       }
  416.    }
  417.    if(this.c_highlight3d == null)
  418.    {
  419.       if(this.highlight3d == null)
  420.       {
  421.          this.c_highlight3d = 14078926;
  422.       }
  423.       else
  424.       {
  425.          this.c_highlight3d = this.highlight3d;
  426.       }
  427.    }
  428.    if(this.c_arrow == null)
  429.    {
  430.       if(this.arrow == null)
  431.       {
  432.          this.c_arrow = 0;
  433.       }
  434.       else
  435.       {
  436.          this.c_arrow = this.arrow;
  437.          delete this.arrow;
  438.       }
  439.    }
  440.    if(this.c_foregroundDisabled == null)
  441.    {
  442.       if(this.foregroundDisabled == null)
  443.       {
  444.          this.c_foregroundDisabled = 10066329;
  445.       }
  446.       else
  447.       {
  448.          this.c_foregroundDisabled = this.foregroundDisabled;
  449.          delete this.foregroundDisabled;
  450.       }
  451.    }
  452.    if(this.c_scrollTrack == null)
  453.    {
  454.       if(this.scrollTrack == null)
  455.       {
  456.          this.c_scrollTrack = 15066078;
  457.       }
  458.       else
  459.       {
  460.          this.c_scrollTrack = this.scrollTrack;
  461.          delete this.scrollTrack;
  462.       }
  463.    }
  464.    if(this.c_borderColorTop == null)
  465.    {
  466.       if(this.borderColorTop == null)
  467.       {
  468.          this.c_borderColorTop = 0;
  469.       }
  470.       else
  471.       {
  472.          this.c_borderColorTop = this.borderColorTop;
  473.          delete this.borderColorTop;
  474.       }
  475.    }
  476.    if(this.c_borderColorBottom == null)
  477.    {
  478.       if(this.borderColorBottom == null)
  479.       {
  480.          this.c_borderColorBottom = 0;
  481.       }
  482.       else
  483.       {
  484.          this.c_borderColorBottom = this.borderColorBottom;
  485.          delete this.borderColorBottom;
  486.       }
  487.    }
  488.    if(this.c_borderColorLeft == null)
  489.    {
  490.       if(this.borderColorLeft == null)
  491.       {
  492.          this.c_borderColorLeft = 0;
  493.       }
  494.       else
  495.       {
  496.          this.c_borderColorLeft = this.borderColorLeft;
  497.          delete this.borderColorLeft;
  498.       }
  499.    }
  500.    if(this.c_borderColorRight == null)
  501.    {
  502.       if(this.borderColorRight == null)
  503.       {
  504.          this.c_borderColorRight = 0;
  505.       }
  506.       else
  507.       {
  508.          this.c_borderColorRight = this.borderColorRight;
  509.          delete this.borderColorRight;
  510.       }
  511.    }
  512.    if(this.scrollTarget != null)
  513.    {
  514.       this.setTarget(this.scrollTarget);
  515.       delete this.scrollTarget;
  516.    }
  517. };
  518. ultimateScrollerClass.prototype.setEnabled = function(e)
  519. {
  520.    this.enabled = e;
  521.    if(this.enabled)
  522.    {
  523.       this.button_up.gotoAndStop("up");
  524.       this.button_down.gotoAndStop("up");
  525.    }
  526.    else
  527.    {
  528.       this.button_up.gotoAndStop("disabled");
  529.       this.button_down.gotoAndStop("disabled");
  530.       this.drag.removeMovieClip();
  531.    }
  532.    this.button_up.setSkins();
  533.    this.drag.setSkins();
  534.    this.button_down.setSkins();
  535. };
  536. ultimateScrollerClass.prototype.clearDelay = function()
  537. {
  538.    clearInterval(this.delayTimer);
  539.    this.scrollDelay = false;
  540. };
  541. ultimateScrollerClass.prototype.resetPositions = function()
  542. {
  543.    this.targetClip._x = this.initX;
  544.    this.targetClip._y = this.initY;
  545.    this.drag._y = this.dragTop;
  546. };
  547. ultimateScrollerClass.prototype.drawMask = function()
  548. {
  549.    var mx = 0;
  550.    var my = 0;
  551.    var mwidth = 0;
  552.    var mheight = 0;
  553.    this.resetPositions();
  554.    if(this.c_horizontal == true)
  555.    {
  556.       mwidth = this.track_mc._height - 0.5;
  557.       mheight = this._y - this.targetClip._y;
  558.       mx = this._x;
  559.       my = this.targetClip._y;
  560.    }
  561.    else if(this.c_scrollSide eq "right")
  562.    {
  563.       mwidth = this._x - this.targetClip._x;
  564.       mheight = this.h - 0.5;
  565.       mx = this.targetClip._x - 1.5;
  566.       my = this._y;
  567.    }
  568.    else
  569.    {
  570.       var bWidth = this.targetClip._x + this.targetClip._width - this._x - this._width + 16.5;
  571.       mwidth = this.targetClip._x + this.targetClip._width - this._x - this._width + 3;
  572.       mheight = this.h - 0.5;
  573.       mx = this.targetClip._x - 0.5;
  574.       my = this._y;
  575.    }
  576.    this.maskObj.removeMovieClip();
  577.    this.maskObj = this._parent.createEmptyMovieClip(this.targetClip._name + "_mask",this.targetClip.getDepth() + 44496 + random(1774) + (random(4) + 1),{_x:this.targetClip._x,_y:this.targetClip._y});
  578.    with(this.maskObj)
  579.    {
  580.       beginFill(16711680);
  581.       lineStyle(0);
  582.       moveTo(0,0);
  583.       lineTo(mwidth,0);
  584.       lineTo(mwidth,mheight);
  585.       lineTo(0,mheight);
  586.       lineTo(0,0);
  587.       endFill();
  588.    }
  589.    this.maskObj._x = mx;
  590.    this.maskObj._y = my;
  591.    this.targetClip.setMask(this.maskObj);
  592. };
  593. ultimateScrollerClass.prototype.drawBorder = function()
  594. {
  595.    this.resetPositions();
  596.    if(this.c_horizontal == true)
  597.    {
  598.       var bWidth = this.h + 1;
  599.       var bHeight = this._y - this.targetClip._y + 1.5 - (16 - this.c_scrollWidth);
  600.       var bX = this._x - 0.5;
  601.       var bY = this.targetClip._y - 1;
  602.    }
  603.    else if(this.c_scrollSide eq "right")
  604.    {
  605.       if(this.c_borderStyle == "3d")
  606.       {
  607.          var bWidth = this._x - this.targetClip._x + this.c_scrollWidth + 4;
  608.          var bHeight = this.h + 1.5;
  609.          var bX = this.targetClip._x - 3;
  610.          var bY = this._y - 0.5;
  611.       }
  612.       else
  613.       {
  614.          var bWidth = this._x - this.targetClip._x + this.c_scrollWidth + 2;
  615.          var bHeight = this.h + 1.5;
  616.          var bX = this.targetClip._x - 1.5;
  617.          var bY = this._y - 1;
  618.       }
  619.    }
  620.    else if(this.c_borderStyle == "3d")
  621.    {
  622.       var bWidth = this.targetClip._x + this.targetClip._width - this._x + 4;
  623.       var bHeight = this.h + 1.5;
  624.       var bX = this._x - 2.5;
  625.       var bY = this._y - 1;
  626.    }
  627.    else
  628.    {
  629.       var bWidth = this.targetClip._x + this.targetClip._width - this._x + 2;
  630.       var bHeight = this.h + 1.5;
  631.       var bX = this._x - 1;
  632.       var bY = this._y - 1;
  633.    }
  634.    this.borderObj.removeMovieClip();
  635.    this.borderObj = this._parent.createEmptyMovieClip(this.targetClip._name + "_border",this.targetClip.getDepth() + 55596 + random(622) + (random(9) + 2),{_x:this.targetClip._x,_y:this.targetClip._y});
  636.    switch(String(this.c_borderStyle))
  637.    {
  638.       case "line":
  639.          with(this.borderObj)
  640.          {
  641.             lineStyle(1,this.c_borderColorT);
  642.             moveTo(0,0);
  643.             lineTo(bWidth,0);
  644.             lineStyle(1,this.c_borderColorR);
  645.             lineTo(bWidth,bHeight);
  646.             lineStyle(1,this.c_borderColorB);
  647.             lineTo(0,bHeight);
  648.             lineStyle(1,this.c_borderColorL);
  649.             lineTo(0,0);
  650.          }
  651.          break;
  652.       case "3d":
  653.          bWidth += 1;
  654.          bHeight += 3;
  655.          bX += 1;
  656.          bY -= 1;
  657.          with(this.borderObj)
  658.          {
  659.             lineStyle(2,this.c_shadow);
  660.             moveTo(0,0);
  661.             lineTo(bWidth,0);
  662.             lineStyle(0.75,this.c_highlight3d);
  663.             lineTo(bWidth,bHeight);
  664.             lineTo(0,bHeight);
  665.             lineStyle(2,this.c_shadow);
  666.             lineTo(0,0);
  667.          }
  668.    }
  669.    this.borderObj._width = bWidth + 0.5;
  670.    this.borderObj._height = bHeight + 0.5;
  671.    this.borderObj._x = bX + 0.5;
  672.    this.borderObj._y = bY + 0.5;
  673.    delete bWidth;
  674.    delete bHeight;
  675.    delete bX;
  676.    delete bY;
  677. };
  678. ultimateScrollerClass.prototype.syncTargetPos = function()
  679. {
  680.    var _loc2_ = (this.drag._y - 16) * 100 / (this.dragBottom - this.dragTop);
  681.    if(this.c_horizontal == true)
  682.    {
  683.       if(this.c_easing ne "none")
  684.       {
  685.          switch(this.c_easing)
  686.          {
  687.             case "high":
  688.                var _loc3_ = 8;
  689.                break;
  690.             case "med":
  691.                _loc3_ = 6;
  692.                break;
  693.             case "low":
  694.                _loc3_ = 4;
  695.          }
  696.          this.easeTo(int(this.scrollBottom - (this.scrollBottom - this.scrollTop) / 100 * _loc2_),this.targetClip._y,_loc3_);
  697.       }
  698.       else
  699.       {
  700.          this.targetClip._x = int(this.scrollBottom - (this.scrollBottom - this.scrollTop) / 100 * _loc2_);
  701.       }
  702.    }
  703.    else if(this.c_easing ne "none")
  704.    {
  705.       switch(this.c_easing)
  706.       {
  707.          case "high":
  708.             _loc3_ = 8;
  709.             break;
  710.          case "med":
  711.             _loc3_ = 6;
  712.             break;
  713.          case "low":
  714.             _loc3_ = 4;
  715.       }
  716.       this.easeTo(this.targetClip._x,int(this.scrollTop - (this.scrollTop - this.scrollBottom) / 100 * _loc2_),_loc3_);
  717.    }
  718.    else
  719.    {
  720.       this.targetClip._y = int(this.scrollTop - (this.scrollTop - this.scrollBottom) / 100 * _loc2_);
  721.    }
  722.    false;
  723.    false;
  724. };
  725. ultimateScrollerClass.prototype.onEnterFrame = function()
  726. {
  727.    if(this.initW != this.targetClip._width || this.initH != this.targetClip._height)
  728.    {
  729.       this.setSize(this.h);
  730.    }
  731.    if(this.enabled == false)
  732.    {
  733.       return undefined;
  734.    }
  735.    this.syncTargetPos();
  736.    if(this.scrollDelay == true)
  737.    {
  738.       return undefined;
  739.    }
  740.    if(this.scrolling eq "DOWN")
  741.    {
  742.       this.scrollDown();
  743.    }
  744.    if(this.scrolling eq "UP")
  745.    {
  746.       this.scrollUp();
  747.    }
  748.    if(this.scrolling eq "PAGEDOWN")
  749.    {
  750.       this.pageDown();
  751.    }
  752.    if(this.scrolling eq "PAGEUP")
  753.    {
  754.       this.pageUp();
  755.    }
  756. };
  757. ultimateScrollerClass.prototype.onUnload = function()
  758. {
  759.    this.maskObj.removeMovieClip();
  760.    this.borderObj.removeMovieClip();
  761. };
  762. ultimateScrollerClass.prototype.easeTo = function(tx, ty, speed)
  763. {
  764.    this.easeMov.removeMovieClip();
  765.    if(this.targetClip._x == tx && this.targetClip._y == ty)
  766.    {
  767.       return undefined;
  768.    }
  769.    var _loc3_ = this.createEmptyMovieClip("easeMov",99945);
  770.    var scroller = this;
  771.    var oldY = scroller.targetClip._y;
  772.    var oldX = scroller.targetClip._x;
  773.    _loc3_.onEnterFrame = function()
  774.    {
  775.       if(scroller.c_horizontal == true)
  776.       {
  777.          var _loc3_ = scroller.targetClip._x - tx >= 0 ? scroller.targetClip._x - tx : (scroller.targetClip._x - tx) * -1;
  778.          var _loc2_ = (tx - oldX) / speed;
  779.          if(_loc2_ < 0 and _loc2_ > -1)
  780.          {
  781.             _loc2_ = -1;
  782.          }
  783.          if(_loc2_ > 0 and _loc2_ < 1)
  784.          {
  785.             _loc2_ = 1;
  786.          }
  787.          newX = oldX + _loc2_;
  788.          oldX = newX;
  789.          scroller.targetClip._x = int(newX);
  790.          false;
  791.          false;
  792.       }
  793.       else
  794.       {
  795.          _loc3_ = scroller.targetClip._y - ty >= 0 ? scroller.targetClip._y - ty : (scroller.targetClip._y - ty) * -1;
  796.          _loc2_ = (ty - oldY) / speed;
  797.          if(_loc2_ < 0 and _loc2_ > -1)
  798.          {
  799.             _loc2_ = -1;
  800.          }
  801.          if(_loc2_ > 0 and _loc2_ < 1)
  802.          {
  803.             _loc2_ = 1;
  804.          }
  805.          newY = oldY + _loc2_;
  806.          oldY = newY;
  807.          scroller.targetClip._y = int(newY);
  808.          false;
  809.          false;
  810.       }
  811.       updateAfterEvent();
  812.       if(_loc3_ < 1)
  813.       {
  814.          scroller.targetClip._x = int(scroller.targetClip._x);
  815.          scroller.targetClip._y = int(scroller.targetClip._y);
  816.          this.removeMovieClip();
  817.       }
  818.    };
  819.    false;
  820.    delete scroller;
  821. };
  822. ultimateScrollerClass.prototype.getHorizontal = function()
  823. {
  824.    return this.c_horizontal;
  825. };
  826. ultimateScrollerClass.prototype.setHorizontal = function(p)
  827. {
  828.    this.c_horizontal = Boolean(p);
  829.    if(this.h)
  830.    {
  831.       this._rotation = -90;
  832.       this._xscale = -100;
  833.       this.setSize(this._width);
  834.    }
  835.    else
  836.    {
  837.       this._rotation = 0;
  838.       this._xscale = 100;
  839.       this.setSize(this._height);
  840.    }
  841. };
  842. ultimateScrollerClass.prototype.getTarget = function()
  843. {
  844.    return this.targetClip;
  845. };
  846. ultimateScrollerClass.prototype.setTarget = function(t)
  847. {
  848.    if(this.drag._y != undefined)
  849.    {
  850.       this.scrollTo = this.drag._y;
  851.    }
  852.    else
  853.    {
  854.       this.scrollTo = null;
  855.    }
  856.    this.resetPositions();
  857.    if(eval(t))
  858.    {
  859.       this.targetClip = t;
  860.       this.targetClip._x = int(this.targetClip._x);
  861.       this.targetClip._y = int(this.targetClip._y);
  862.       this.initX = int(this.targetClip._x);
  863.       this.initY = int(this.targetClip._y);
  864.       this.initH = this.targetClip._height;
  865.       this.initW = this.targetClip._width;
  866.       if(this.c_horizontal == true)
  867.       {
  868.          this.targetClip._x = this.initX;
  869.          this._x = int(this._x);
  870.          this._y = int(this._y);
  871.       }
  872.       else
  873.       {
  874.          this.targetClip._y = this.initY;
  875.          this._x = int(this._x);
  876.          this._y = int(this._y);
  877.       }
  878.       if(this.c_useMask)
  879.       {
  880.          this.drawMask();
  881.       }
  882.       if(this.c_borderStyle ne "none")
  883.       {
  884.          this.drawBorder();
  885.       }
  886.       if(this.c_horizontal == true)
  887.       {
  888.          this.scrollBottom = int(this.targetClip._x);
  889.          this.scrollTop = int(this.targetClip._x) - Math.ceil(this.targetClip._width - (this._width - (this.c_buffer + 2)) - (this._x - this.targetClip._x));
  890.          this.visiblePercent = this.h * 100 / (this.targetClip._width - (this._x - this.targetClip._x));
  891.          if(this.scrollTop >= this.scrollBottom)
  892.          {
  893.             this.setEnabled(false);
  894.             return undefined;
  895.          }
  896.       }
  897.       else
  898.       {
  899.          this.scrollTop = int(this.targetClip._y);
  900.          this.scrollBottom = Math.ceil((this.targetClip._height - (this.h - (this.c_buffer + 2))) * -1) + this.scrollTop + (this._y - this.targetClip._y);
  901.          this.visiblePercent = this.h * 100 / (this.targetClip._height - (this._y - this.targetClip._y));
  902.          if(this.scrollTop <= this.scrollBottom)
  903.          {
  904.             this.setEnabled(false);
  905.             return undefined;
  906.          }
  907.       }
  908.       this.setEnabled(true);
  909.       this.drawDrag();
  910.       if(!this.c_dragVisible)
  911.       {
  912.          this.drag._visible = false;
  913.       }
  914.    }
  915.    else
  916.    {
  917.       delete this.targetClip;
  918.       this.setEnabled(false);
  919.    }
  920.    delete btnDrag;
  921. };
  922. ultimateScrollerClass.prototype.drawDrag = function()
  923. {
  924.    this.dragHeight = (this.h - 32) / 100 * this.visiblePercent;
  925.    this.dragHeight = this.dragHeight <= int(this.h - 34) ? int(this.dragHeight) : int(this.h - 34);
  926.    this.dragHeight = this.dragHeight >= 6 ? int(this.dragHeight) : 6;
  927.    if(!this.c_dragAuto)
  928.    {
  929.       if(this.c_dragHeight > this.track_mc._height - 48)
  930.       {
  931.          this.c_dragHeight = this.track_mc._height - 48;
  932.       }
  933.       else if(this.c_dragHeight < 2)
  934.       {
  935.          this.c_dragHeight = 2;
  936.       }
  937.       this.dragHeight = this.c_dragHeight;
  938.    }
  939.    var btnDrag = this.attachMovie("ultimateScroller_drag","drag",5,{_x:0,_y:16,w:this.c_scrollWidth,h:this.dragHeight});
  940.    btnDrag.useHandCursor = false;
  941.    this.dragTop = 16;
  942.    this.dragBottom = this.h - 16 - this.dragHeight;
  943.    if(this.scrollTo != null)
  944.    {
  945.       btnDrag._y = this.scrollTo <= this.dragBottom ? this.scrollTo : this.dragBottom;
  946.       var _loc3_ = this.c_easing;
  947.       this.c_easing = "none";
  948.       this.syncTargetPos();
  949.       this.c_easing = _loc3_;
  950.       false;
  951.    }
  952.    btnDrag.onMouseDown = function()
  953.    {
  954.       if(this._parent.enabled == false)
  955.       {
  956.          return undefined;
  957.       }
  958.       if(btnDrag.hitTest(_root._xmouse,_root._ymouse))
  959.       {
  960.          btnDrag.startDrag(false,0,this._parent.dragTop,0,this._parent.dragBottom);
  961.          this._parent.dragging = true;
  962.          updateAfterEvent();
  963.       }
  964.    };
  965.    btnDrag.onMouseUp = function()
  966.    {
  967.       btnDrag.stopDrag();
  968.       this._parent.dragging = false;
  969.       updateAfterEvent();
  970.    };
  971. };
  972. ultimateScrollerClass.prototype.getSize = function()
  973. {
  974.    return this.h;
  975. };
  976. ultimateScrollerClass.prototype.setSize = function(s)
  977. {
  978.    this.h = s > 55 ? int(s) : 55;
  979.    this._xscale = this._yscale = 100;
  980.    this.track_mc._height = this.h;
  981.    if(this.c_horizontal == true)
  982.    {
  983.       this.attachMovie("ultimateScroller_button_left","button_up",1,{_x:0,_y:0});
  984.       this.button_up.gotoAndStop(3);
  985.       this.attachMovie("ultimateScroller_button_right","button_down",2,{_x:0,_y:this.h - 16});
  986.       this.button_down.gotoAndStop(3);
  987.    }
  988.    else
  989.    {
  990.       this.attachMovie("ultimateScroller_button_up","button_up",1,{_x:0,_y:0});
  991.       this.button_up.gotoAndStop(3);
  992.       this.attachMovie("ultimateScroller_button_down","button_down",2,{_x:0,_y:this.h - 16});
  993.       this.button_down.gotoAndStop(3);
  994.    }
  995.    if(this.targetClip)
  996.    {
  997.       this.setTarget(this.targetClip);
  998.    }
  999.    else
  1000.    {
  1001.       this.setEnabled(false);
  1002.    }
  1003. };
  1004. ultimateScrollerClass.prototype.getBuffer = function()
  1005. {
  1006.    return this.c_buffer;
  1007. };
  1008. ultimateScrollerClass.prototype.setBuffer = function(p)
  1009. {
  1010.    this.c_buffer = int(p);
  1011. };
  1012. ultimateScrollerClass.prototype.getEasing = function()
  1013. {
  1014.    return this.c_easing;
  1015. };
  1016. ultimateScrollerClass.prototype.setEasing = function(p)
  1017. {
  1018.    this.c_easing = String(p);
  1019. };
  1020. ultimateScrollerClass.prototype.getScrollAmount = function()
  1021. {
  1022.    return this.c_scrollAmount;
  1023. };
  1024. ultimateScrollerClass.prototype.setScrollAmount = function(p)
  1025. {
  1026.    this.c_scrollAmount = int(p);
  1027. };
  1028. ultimateScrollerClass.prototype.getUseMask = function()
  1029. {
  1030.    return this.c_useMask;
  1031. };
  1032. ultimateScrollerClass.prototype.setUseMask = function(p)
  1033. {
  1034.    this.c_useMask = Boolean(p);
  1035.    if(this.c_useMask && eval(this.targetClip._name))
  1036.    {
  1037.       this.drawMask();
  1038.    }
  1039.    else
  1040.    {
  1041.       var tmp = eval(this.targetClip._name + "_mask");
  1042.       tmp.removeMovieClip();
  1043.       delete tmp;
  1044.    }
  1045. };
  1046. ultimateScrollerClass.prototype.getScrollTrackVisible = function()
  1047. {
  1048.    return this.c_scrollTrackVisible;
  1049. };
  1050. ultimateScrollerClass.prototype.setScrollTrackVisible = function(p)
  1051. {
  1052.    this.c_scrollTrackVisible = Boolean(p);
  1053. };
  1054. ultimateScrollerClass.prototype.getButtonsVisible = function()
  1055. {
  1056.    return this.c_buttonsVisible;
  1057. };
  1058. ultimateScrollerClass.prototype.setButtonsVisible = function(p)
  1059. {
  1060.    this.c_buttonsVisible = Boolean(p);
  1061. };
  1062. ultimateScrollerClass.prototype.getArrowsVisible = function()
  1063. {
  1064.    return this.c_arrowsVisible;
  1065. };
  1066. ultimateScrollerClass.prototype.setArrowsVisible = function(p)
  1067. {
  1068.    this.c_arrowsVisible = Boolean(p);
  1069. };
  1070. ultimateScrollerClass.prototype.getArrowDefaultColor = function()
  1071. {
  1072.    return this.c_arrowDefaultColor;
  1073. };
  1074. ultimateScrollerClass.prototype.setArrowDefaultColor = function(p)
  1075. {
  1076.    this.c_arrowDefaultColor = Boolean(p);
  1077. };
  1078. ultimateScrollerClass.prototype.getUseDisabledColor = function()
  1079. {
  1080.    return this.c_useDisabledColor;
  1081. };
  1082. ultimateScrollerClass.prototype.setUseDisabledColor = function(p)
  1083. {
  1084.    this.c_useDisabledColor = Boolean(p);
  1085. };
  1086. ultimateScrollerClass.prototype.getScrollWidth = function()
  1087. {
  1088.    return this.c_scrollWidth;
  1089. };
  1090. ultimateScrollerClass.prototype.setScrollWidth = function(p)
  1091. {
  1092.    this.c_scrollWidth = int(p);
  1093.    this.drawDrag();
  1094.    this.drawBorder();
  1095. };
  1096. ultimateScrollerClass.prototype.getDragVisible = function()
  1097. {
  1098.    return this.c_dragVisible;
  1099. };
  1100. ultimateScrollerClass.prototype.setDragVisible = function(p)
  1101. {
  1102.    this.c_dragVisible = Boolean(p);
  1103.    if(this.c_dragVisible)
  1104.    {
  1105.       this.drag._visible = true;
  1106.    }
  1107.    else
  1108.    {
  1109.       this.drag._visible = false;
  1110.    }
  1111. };
  1112. ultimateScrollerClass.prototype.getDragHeightAuto = function()
  1113. {
  1114.    return this.c_dragAuto;
  1115. };
  1116. ultimateScrollerClass.prototype.setDragHeightAuto = function(p)
  1117. {
  1118.    this.c_dragAuto = Boolean(p);
  1119.    this.drawDrag();
  1120. };
  1121. ultimateScrollerClass.prototype.getScrollSide = function()
  1122. {
  1123.    return this.c_scrollSide;
  1124. };
  1125. ultimateScrollerClass.prototype.setScrollSide = function(p)
  1126. {
  1127.    this.c_scrollSide = String(p);
  1128.    this.drawMask();
  1129.    this.drawBorder();
  1130. };
  1131. ultimateScrollerClass.prototype.getBorderStyle = function()
  1132. {
  1133.    return this.c_borderStyle;
  1134. };
  1135. ultimateScrollerClass.prototype.setBorderStyle = function(p)
  1136. {
  1137.    this.c_borderStyle = p.toLowerCase();
  1138.    var tmp = eval(this.targetClip._name + "_border");
  1139.    tmp.removeMovieClip();
  1140.    if(this.c_borderStyle ne "none" && eval(this.targetClip._name))
  1141.    {
  1142.       this.drawBorder();
  1143.    }
  1144.    delete tmp;
  1145. };
  1146. ultimateScrollerClass.prototype.getFace = function()
  1147. {
  1148.    return this.c_face;
  1149. };
  1150. ultimateScrollerClass.prototype.setFace = function(p)
  1151. {
  1152.    this.c_face = p;
  1153.    this.button_up.setSkins();
  1154.    this.drag.setSkins();
  1155.    this.button_down.setSkins();
  1156.    this.track_mc.setSkins();
  1157. };
  1158. ultimateScrollerClass.prototype.getShadow = function()
  1159. {
  1160.    return this.c_shadow;
  1161. };
  1162. ultimateScrollerClass.prototype.setShadow = function(p)
  1163. {
  1164.    this.c_shadow = p;
  1165.    this.button_up.setSkins();
  1166.    this.drag.setSkins();
  1167.    this.button_down.setSkins();
  1168.    this.track_mc.setSkins();
  1169.    if(this.c_borderStyle ne "none" && eval(this.targetClip._name))
  1170.    {
  1171.       this.drawBorder();
  1172.    }
  1173. };
  1174. ultimateScrollerClass.prototype.getDarkshadow = function()
  1175. {
  1176.    return this.c_darkshadow;
  1177. };
  1178. ultimateScrollerClass.prototype.setDarkshadow = function(p)
  1179. {
  1180.    this.c_darkshadow = p;
  1181.    this.button_up.setSkins();
  1182.    this.drag.setSkins();
  1183.    this.button_down.setSkins();
  1184.    this.track_mc.setSkins();
  1185. };
  1186. ultimateScrollerClass.prototype.getHighlight = function()
  1187. {
  1188.    return this.c_highlight;
  1189. };
  1190. ultimateScrollerClass.prototype.setHighlight = function(p)
  1191. {
  1192.    this.c_highlight = p;
  1193.    this.button_up.setSkins();
  1194.    this.drag.setSkins();
  1195.    this.button_down.setSkins();
  1196.    this.track_mc.setSkins();
  1197. };
  1198. ultimateScrollerClass.prototype.getHighlight3d = function()
  1199. {
  1200.    return this.c_highlight3d;
  1201. };
  1202. ultimateScrollerClass.prototype.setHighlight3d = function(p)
  1203. {
  1204.    this.c_highlight3d = p;
  1205.    this.button_up.setSkins();
  1206.    this.drag.setSkins();
  1207.    this.button_down.setSkins();
  1208.    this.track_mc.setSkins();
  1209.    if(this.c_borderStyle ne "none" && eval(this.targetClip._name))
  1210.    {
  1211.       this.drawBorder();
  1212.    }
  1213. };
  1214. ultimateScrollerClass.prototype.getArrow = function()
  1215. {
  1216.    return this.c_arrow;
  1217. };
  1218. ultimateScrollerClass.prototype.setArrow = function(p)
  1219. {
  1220.    this.c_arrow = p;
  1221.    this.button_up.setSkins();
  1222.    this.button_down.setSkins();
  1223. };
  1224. ultimateScrollerClass.prototype.getForegroundDisabled = function()
  1225. {
  1226.    return this.c_foregroundDisabled;
  1227. };
  1228. ultimateScrollerClass.prototype.setForegroundDisabled = function(p)
  1229. {
  1230.    this.c_foregroundDisabled = p;
  1231.    this.button_up.setSkins();
  1232.    this.drag.setSkins();
  1233.    this.button_down.setSkins();
  1234.    this.track_mc.setSkins();
  1235. };
  1236. ultimateScrollerClass.prototype.getScrollTrack = function()
  1237. {
  1238.    return this.c_scrollTrack;
  1239. };
  1240. ultimateScrollerClass.prototype.setScrollTrack = function(p)
  1241. {
  1242.    this.c_scrollTrack = p;
  1243.    this.track_mc.setSkins();
  1244. };
  1245. ultimateScrollerClass.prototype.getBorderColorTop = function()
  1246. {
  1247.    return this.c_borderColorT;
  1248. };
  1249. ultimateScrollerClass.prototype.setBorderColorTop = function(p)
  1250. {
  1251.    this.c_borderColorT = p;
  1252.    if(eval(this.targetClip._name) && this.c_borderStyle eq "line")
  1253.    {
  1254.       this.drawBorder();
  1255.    }
  1256. };
  1257. ultimateScrollerClass.prototype.getBorderColorBottom = function()
  1258. {
  1259.    return this.c_borderColorB;
  1260. };
  1261. ultimateScrollerClass.prototype.setBorderColorBottom = function(p)
  1262. {
  1263.    this.c_borderColorB = p;
  1264.    if(eval(this.targetClip._name) && this.c_borderStyle eq "line")
  1265.    {
  1266.       this.drawBorder();
  1267.    }
  1268. };
  1269. ultimateScrollerClass.prototype.getBorderColorLeft = function()
  1270. {
  1271.    return this.c_borderColorL;
  1272. };
  1273. ultimateScrollerClass.prototype.setBorderColorLeft = function(p)
  1274. {
  1275.    this.c_borderColorL = p;
  1276.    if(eval(this.targetClip._name) && this.c_borderStyle eq "line")
  1277.    {
  1278.       this.drawBorder();
  1279.    }
  1280. };
  1281. ultimateScrollerClass.prototype.getBorderColorRight = function()
  1282. {
  1283.    return this.c_borderColorR;
  1284. };
  1285. ultimateScrollerClass.prototype.setBorderColorRight = function(p)
  1286. {
  1287.    this.c_borderColorR = p;
  1288.    if(eval(this.targetClip._name) && this.c_borderStyle eq "line")
  1289.    {
  1290.       this.drawBorder();
  1291.    }
  1292. };
  1293. ultimateScrollerClass.prototype.addProperty("horizontal",ultimateScrollerClass.prototype.getHorizontal,ultimateScrollerClass.prototype.setHorizontal);
  1294. ultimateScrollerClass.prototype.addProperty("scrollTarget",ultimateScrollerClass.prototype.getTarget,ultimateScrollerClass.prototype.setTarget);
  1295. ultimateScrollerClass.prototype.addProperty("size",ultimateScrollerClass.prototype.getSize,ultimateScrollerClass.prototype.setSize);
  1296. ultimateScrollerClass.prototype.addProperty("scrollBuffer",ultimateScrollerClass.prototype.getBuffer,ultimateScrollerClass.prototype.setBuffer);
  1297. ultimateScrollerClass.prototype.addProperty("scrollAmount",ultimateScrollerClass.prototype.getScrollAmount,ultimateScrollerClass.prototype.setScrollAmount);
  1298. ultimateScrollerClass.prototype.addProperty("easing",ultimateScrollerClass.prototype.getEasing,ultimateScrollerClass.prototype.setEasing);
  1299. ultimateScrollerClass.prototype.addProperty("useMask",ultimateScrollerClass.prototype.getUseMask,ultimateScrollerClass.prototype.setUseMask);
  1300. ultimateScrollerClass.prototype.addProperty("dragVisible",ultimateScrollerClass.prototype.getDragVisible,ultimateScrollerClass.prototype.setDragVisible);
  1301. ultimateScrollerClass.prototype.addProperty("dragHeightAuto",ultimateScrollerClass.prototype.getDragHeightAuto,ultimateScrollerClass.prototype.setDragHeightAuto);
  1302. ultimateScrollerClass.prototype.addProperty("scrollSide",ultimateScrollerClass.prototype.getScrollSide,ultimateScrollerClass.prototype.setScrollSide);
  1303. ultimateScrollerClass.prototype.addProperty("borderStyle",ultimateScrollerClass.prototype.getBorderStyle,ultimateScrollerClass.prototype.setBorderStyle);
  1304. ultimateScrollerClass.prototype.addProperty("face",ultimateScrollerClass.prototype.getFace,ultimateScrollerClass.prototype.setFace);
  1305. ultimateScrollerClass.prototype.addProperty("shadow",ultimateScrollerClass.prototype.getShadow,ultimateScrollerClass.prototype.setShadow);
  1306. ultimateScrollerClass.prototype.addProperty("darkshadow",ultimateScrollerClass.prototype.getDarkshadow,ultimateScrollerClass.prototype.setDarkshadow);
  1307. ultimateScrollerClass.prototype.addProperty("highlight",ultimateScrollerClass.prototype.getHighlight,ultimateScrollerClass.prototype.setHighlight);
  1308. ultimateScrollerClass.prototype.addProperty("highlight3d",ultimateScrollerClass.prototype.getHighlight3d,ultimateScrollerClass.prototype.setHighlight3d);
  1309. ultimateScrollerClass.prototype.addProperty("arrow",ultimateScrollerClass.prototype.getArrow,ultimateScrollerClass.prototype.setArrow);
  1310. ultimateScrollerClass.prototype.addProperty("foregroundDisabled",ultimateScrollerClass.prototype.getForegroundDisabled,ultimateScrollerClass.prototype.setForegroundDisabled);
  1311. ultimateScrollerClass.prototype.addProperty("scrollTrack",ultimateScrollerClass.prototype.getScrollTrack,ultimateScrollerClass.prototype.setScrollTrack);
  1312. ultimateScrollerClass.prototype.addProperty("borderColorTop",ultimateScrollerClass.prototype.getBorderColorTop,ultimateScrollerClass.prototype.setBorderColorTop);
  1313. ultimateScrollerClass.prototype.addProperty("borderColorBottom",ultimateScrollerClass.prototype.getBorderColorBottom,ultimateScrollerClass.prototype.setBorderColorBottom);
  1314. ultimateScrollerClass.prototype.addProperty("borderColorLeft",ultimateScrollerClass.prototype.getBorderColorLeft,ultimateScrollerClass.prototype.setBorderColorLeft);
  1315. ultimateScrollerClass.prototype.addProperty("borderColorRight",ultimateScrollerClass.prototype.getBorderColorRight,ultimateScrollerClass.prototype.setBorderColorRight);
  1316. ultimateScrollerClass.prototype.addProperty("scrollTrackVisible",ultimateScrollerClass.prototype.getScrollTrackVisible,ultimateScrollerClass.prototype.setScrollTrackVisible);
  1317. ultimateScrollerClass.prototype.addProperty("buttonsVisible",ultimateScrollerClass.prototype.getButtonsVisible,ultimateScrollerClass.prototype.setButtonsVisible);
  1318. ultimateScrollerClass.prototype.addProperty("arrowsVisible",ultimateScrollerClass.prototype.getArrowsVisible,ultimateScrollerClass.prototype.setArrowsVisible);
  1319. ultimateScrollerClass.prototype.addProperty("arrowDefaultColor",ultimateScrollerClass.prototype.getArrowDefaultColor,ultimateScrollerClass.prototype.setArrowDefaultColor);
  1320. ultimateScrollerClass.prototype.addProperty("scrollWidth",ultimateScrollerClass.prototype.getScrollWidth,ultimateScrollerClass.prototype.setScrollWidth);
  1321. ultimateScrollerClass.prototype.addProperty("useDisabledColor",ultimateScrollerClass.prototype.getUseDisabledColor,ultimateScrollerClass.prototype.setUseDisabledColor);
  1322. Object.registerClass("ultimateScroller",ultimateScrollerClass);
  1323.